<!--<body class="no-skin" onload="sessionStorage._type='2';init()">-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta charset="utf-8"/>
    <title>后台管理</title>

    <meta name="description" content="overview &amp; stats"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="../../ace/assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../ace/assets/font-awesome/4.2.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="../../ace/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style"/>
    <link rel="stylesheet" href="../../ace/assets/css/daterangepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/font-awesome.min.css"/>
    <!--公共css-->        <!--[if lte IE 9]>
    <link rel="stylesheet" href="../../ace/assets/css/ace-part2.min.css" class="ace-main-stylesheet"/>
    <link rel="stylesheet" href="../../ace/assets/css/ace-ie.min.css"/>        <![endif]-->

    <!--icely add-->
    <link href="../myPlugins/inputLimit/inputLimit.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="../css/myStyle.css"/>
    <link rel="stylesheet" href="../myPlugins/loading/loading.css"/>
    <link rel="stylesheet" href="../myPlugins/upLoadImg/upLoadImg.css"/>
    <link href="../myPlugins/jqGrid/jqGrid/jqGrid.css" rel="stylesheet" type="text/css">

    <!-- ace 设置处理程序 -->
    <script src="../../ace/assets/js/ace-extra.min.js"></script>
    <!--[if lte IE 8]>
    <script src="../../ace/assets/js/html5shiv.min.js"></script>
    <script src="../../ace/assets/js/respond.min.js"></script>        <![endif]-->

</head>

<style>

    /*头部导航*/
    .page-header{
        padding: 0px !important;
        border-bottom: none;
    }
    .page-header .tabs{
        padding: 0px;
        margin: 0px;
        background: rgb(245,245,245);
    }
    .page-header .tabs > li{
        display: inline-block;
        color: #000000;
        padding: 0.8% 3%;
        cursor: pointer;
    }
    .page-header .tabs > li.active{
        background: #ffffff;
        color: rgb(74,144,226);
    }

    /*内容部分*/
    .page-body{
        background: #ffffff;
    }
    .page-body .tabs-content > div{
        display: none;
    }
    .page-body .tabs-content > div.active{
        display: block;
    }
    .page-body .tabs-content:first-child .textAlignRight{
        padding-right: 3%;
    }

    .editModal-content > .row,
    .page-body .tabs-content > div .row{
        margin: 2% 0% !important;
    }

    /*模态框*/
    .editModal-content{
        padding: 2% 3%;
    }

</style>

<body class="no-skin" onload="init()">
<!--顶部header占位符-->
<div id="header"></div>
<!--内容容器-->
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <div id="sidebar" class="sidebar responsive"></div>

    <div class="main-content">
        <div class="main-content-inner">
            <!--内容区的顶部路径栏-->
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try {
                        ace.settings.check('breadcrumbs', 'fixed')
                    } catch (e) {
                    }
                </script>
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        礼品管理
                    </li>
                    <li>编辑</li>
                </ul>
            </div>

            <div class="page-content">
                <div class="page-body">
                    <div class="tabs-content">

                        <!--免费领取-->
                        <div class="active">
                            <div style="width: 70%; margin: 2% auto;">

                                <div class="row">
                                    <div class="col-md-3 textAlignRight">礼品名称：</div>
                                    <div class="col-md-8">
                                        <input type="text" min="0" placeholder="请输入礼品名称" class="gift_name">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3 textAlignRight">礼品分类：</div>
                                    <div class="col-md-8">
                                        <select class="gift_type">
                                        <option value="1">话费/流量</option>
                                        <option value="2">影视类</option>
                                        <option value="3">电子券</option>
                                        <option value="4">特殊活动</option>
                                        </select>
                                    </div>
                                </div>
                               <div class="row">
                                    <div class="col-md-3 textAlignRight">兑换积分：</div>
                                    <div class="col-md-8">
                                        <input type="number" min="1" placeholder="请输入非负整数" class="gift_score">
                                    </div>
                                </div>
                                 <div class="row">
                                    <div class="col-md-3 textAlignRight">库存：</div>
                                    <div class="col-md-8">
                                        <input type="number" min="0" placeholder="请输入非负整数" class="gift_total">
                                    </div>
                                </div>
                                <div class="row" style="display: none">
                                    <div class="col-md-3 textAlignRight">指向链接：</div>
                                    <div class="col-md-8">
                                        <input type="text" min="0" placeholder="请输入指向链接" class="gift_link">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3 textAlignRight">是否显示：</div>
                                    <div class="col-md-8">
                                        <select class="is_show">
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3 textAlignRight">是否为实物：</div>
                                    <div class="col-md-8">
                                        <select class="material">
                                            <option value="1">是</option>
                                            <option value="0">否</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-3 textAlignRight">奖品图片：</div>
                                    <div class="col-md-8" id="projectImg">
                                </div>
                                <div class="row" style="margin-top: 170px !important;">
                                    <div class="col-md-3 textAlignRight">礼品介绍：</div>
                                    <div id="myEditor" style="width: 66%;height: 250px">
                                </div>
                                <div class="row textAlignCenter">
                                    <div class="saveBtn btn btn-sm btn-primary width80" style="margin-top: 30px">保存</div>
                                    <div class="returnBtn btn btn-sm btn-primary width80" style="margin-top: 30px">返回</div>
                                </div>
                                <input type="hidden" class="gift_id">

                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<!-- /.main-content -->

<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i></a>
<!-- /.main-container -->

<!-- bootstrap -->
<script src="../../ace/assets/js/jquery.1.11.1.min.js"></script>
<script src="../../ace/assets/js/bootstrap.min.js"></script>
<!-- 日期选择插件 -->
<script src="../../ace/assets/js/moment.min.js"></script>
<script src="../../ace/assets/js/daterangepicker.min.js"></script>
<!-- ACE 基本JS -->
<script src="../../ace/assets/js/ace-elements.min.js"></script>
<script src="../../ace/assets/js/ace.min.js"></script>
<script src="../js/libs/hint.js"></script>
<script src="../../ace/assets/js/bootbox.min.js"></script>
<!-- 公共JS -->
<script src="../js/rush.js"></script>

<!--icely add-->
<script src="../myPlugins/inputLimit/inputLimit.js"></script>
<script src="../myPlugins/jqGrid/jqGrid/jqGrid.js"></script>
<script src="../myPlugins/loading/loading.js"></script>
<script src="../myPlugins/upLoadImg/upLoadImg.js"></script>
<script src="editGift.js"></script>

<!-- 富文本编辑器  -->
<link href="umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<!-- <script type="text/javascript" src="umeditor/third-party/jquery.min.js"></script> -->
<script type="text/javascript" charset="utf-8" src="umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="umeditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor');//,{
    //     imageUrl: "http://zhaoshifu.dev/admin.php/RushBuy/upload",
    //     imagePath: "/rush", 
    //     imageFieldName:"upfile"
    // });
    $(".edui-container").css("float", "left");
</script>
</body>
</html>
